package com.vehicle.service.imp;

import com.vehicle.bean.DataGridView;
import com.vehicle.mapper.ViolationMapper;
import com.vehicle.service.ViolationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class ViolationServiceImpl implements ViolationService{
    @Autowired
    private ViolationMapper violationMapper;
    @Override
    public DataGridView findAllViolation() {
        DataGridView dataGridView = new DataGridView();
        dataGridView.setData(violationMapper.selectAllViolation());
        return dataGridView;
    }
}
